﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class GameOver:GerenciadorTelas
    {
        Texture2D textura;

        public GameOver(Texture2D textura)
        {
            this.textura = textura;
        }

        public void Update(GameTime gameTime)
        {
            if ((Game1.ApertouJoystick(Buttons.A)) || (Game1.ApertouTeclado(Keys.Enter)))
            {
                estadoAtual = Estados.MENU;               
            }   
        }

        public new void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(textura, Vector2.Zero, Color.White);
        }
    }
}
